<link href="<?php echo DOMAIN; ?>/css/style.css" rel="stylesheet" type="text/css" />
<!-- CSS - Styles -->
<link href="<?php echo DOMAIN; ?>/css/base.css" rel="stylesheet" type="text/css" />
<link href="<?php echo DOMAIN; ?>/css/forms.css" rel="stylesheet" type="text/css" />

<style>
	content table tr td{
		background:#e2e2e2;
	}
</style>

<?php 
	$list = $this->list;
	
//	Zend_Debug::dump($list);
?>
 <div id="content">

      <div class="form-select" style="padding-bottom:10px;overflow:hidden;border-bottom:1px solid #d3d3d3">
          <form style="" method="post" name="contact" action="" enctype="multipart/form-data">
                    <label for="author" class="title-row" style="margin:0px 10px 0px 0px;">Chọn kì học:</label>
                   <select name="semester">
                     <?php
                      $semester = $this->semester;
                      $get_semester = $this->get_semester;
                      foreach ($semester as $key => $value) {
                        ?>
                        <option <?php if($get_semester == $value["id"]) echo "selected='selected'" ?> value="<?php echo $value["id"] ?>"><?php echo $value["name"] ?></option>
                        <?php
                      }
                     ?>
                      
                   </select>
                   <div style="clear:both"></div>
                   <input style="background:#68AAEE;" type="submit" value="Đồng ý" id="submit" name="submit" class="submit_btn float_l" />
            </form>
      </div>

     <section class="grid_9" id="dashtabs" style="width:98%;min-height:400px;margin-top:40px;">
        <div class="box-header">
        	Danh sách môn dạy
          
        </div>
        <div id="dashtabs-pages" class="box-content no-padding" >
          <table class="table no-border">
            <thead style="width:100%;">
              <tr>
                <td width="5%" align="center">STT</td>
                <td width="15%" align="center">Tên giáo viên </td>
                <td width="15%" align="center">Khoa</td>
                <td width="20%" align="center">Môn học</td>
                <td width="10%" align="center">Mã môn học</td>
                <td width="10%" align="center">Số tín chỉ</td>
                <td width="5%" align="center">Phòng học</td>
                <td width="5%" align="center">Học kì</td>
              </tr>
            </thead>
            <tbody>
            	
            	<?php 
            	//	Zend_Debug::dump($list);die;
            		if(isset($list) && count($list)){
	            		$i=1;
	            		foreach ($list as $key => $value) {
	            			?>
	            			<tr>
				                <td align="center"><?php echo $i; ?></td>
				                <td align="center"><?php echo $value["name_teachers"] ?></td>
				                <td align="center"><?php echo $value["name_i"] ?></td>
				                <td align="center"><a href='<?php echo DOMAIN_INDEX ?>/subjects/index?s_id=<?php echo $value["id"] ?>'><?php echo $value["name"] ?></a></td>
				                <td align="center"><?php echo $value["code"] ?></td>
				                <td align="center"><?php echo $value["weight"] ?></td>
				                <td align="center"><?php echo $value["name_r"] ?></td>
				                <td align="center"><?php echo $value["name_s"] ?></td>
				              </tr>
	            			<?php 
	            			$i++;
	            		}
            		}
            	?>
            </tbody>
          </table>
        </div>
        
        <div class="box-footer"> <span class="txt-smaller txt-light"></span>
          <ul class="pagination">
            
          </ul>
      </div>
    </section>   	
            
 </div> <!-- END of content -->